<?php
defined("_ARKN_EXEC") or exit("no no, mr. superman no here");
?>

<div id="logo">
	<h1>Fontys Student Information System</h1>

<?php if($_SESSION["roleid"] == Roles::Secretary) { ?>
	
	<h3>Secretary account.</h3>
</div>

<ul class="menu lgray" id="menu">
	<li>
		<a href="?page=home">Home</a>
	</li>
	<li>
		<a href="?page=studentlist">Students</a>
		<ul>
			<li>
				<a href="?page=studentlist">List all students</a>
			</li>
			<li>
				<a href="?page=addstudent">Add student</a>
			</li>
			<li>
				<a href="?page=findstudent_edit">Edit student</a>
			</li>
		</ul>
	</li>
	
	<li>
		<a href="?page=courselist">Courses</a>
		<ul>
			<li>
				<a href="?page=courselist">List all courses</a>
			</li>
			<li>
				<a href="?page=addcourse">Add course</a>
			</li>
		</ul>
	</li>

<?php } else if($_SESSION["roleid"] == Roles::Student) { ?>
	<h3>Student account.</h3>
</div>
<ul class="menu lgray" id="menu">
<?php } else if($_SESSION["roleid"] == Roles::Teacher) { ?>
	<h3>Teacher account.</h3>
</div>
<ul class="menu lgray" id="menu">
<?php } ?>

	<li class="floatr">
		<a href="#"><?php htmlentities(print($_SESSION["name"])); ?></a>
		<ul>
			<li>
				<a href="?page=run_logout">Logout</a>
			</li>
		</ul>
	</li>
</ul>